package com.atech.ebayadmin.amount.service.impl;

import com.atech.ebayadmin.amount.dao.IAmountDAO;
import com.atech.ebayadmin.amount.model.Amount;
import com.atech.ebayadmin.amount.service.IAmountService;

public class AmountService implements IAmountService{
	private final static org.apache.commons.logging.Log logger = 
		org.apache.commons.logging.LogFactory.getLog(AmountService.class);
    private IAmountDAO amountDAO;

    /**
	 * @return the amountDAO
	 */
	public IAmountDAO getAmountDAO() {
		return amountDAO;
	}

	/**
	 * @param amountDAO the amountDAO to set
	 */
	public void setAmountDAO(IAmountDAO amountDAO) {
		this.amountDAO = amountDAO;
	}

	public Amount getAmount(Integer id) throws Exception{
		return amountDAO.getAmount(id);
	}
    public Integer saveAmount(Amount po) throws Exception{
    	return amountDAO.saveAmount(po);
    }
    public void deleteAmount(Amount po) throws Exception{
    	amountDAO.deleteAmount(po);
    }
    public void updateAmount(Amount po) throws Exception{
    	amountDAO.updateAmount(po);
    }
}
	
